/*
 * @Author: your name
 * @Date: 2021-06-27 09:31:40
 * @LastEditTime: 2021-06-27 09:35:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \新建文件夹 (2)\asugcsacv\index.js
 */
const Koa=require("koa")
const bodyparser=require("koa-bodyparser")
const router=require("./router")
const cors=require("koa-cors")
const app=new Koa()

app.use(bodyparser())
app.use(cors())
router(app)
app.listen(8888,()=>{
    console.log("启动成功")
})
